package com.lq.dubbo.provider.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.lq.dubbo.service.IUseService;
import org.springframework.stereotype.Component;

/**
 * @program: springbootdubborocketmq
 * @description:
 * @author: LQ
 * @create: 2021-05-28 14:42
 */
// 注册到spring容器中
@Component
// 服务暴露,可以指定针对哪一个接口提供服务
@Service(interfaceClass = IUseService.class)
public class IUseServiceImpl implements IUseService {
    @Override
    public String sayHello(String name) {
        return "Hello: " + name;
    }
}
